package com.diyunapp.xilinapp.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.diyunapp.xilinapp.R;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/6/17.
 */
public class BaseOrangeActivity extends BaseActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getTopBar().setTopBackGround(R.color.colorDarkTopBar);
        getTopBar().setTitleSize(20);
        getTopBar().setTitleColor("#FFFFFF");
        getTopBar().getLeftIcon().setImageResource(R.drawable.ic_arrow_left_gray);
        getTopBar().getLeftIcon().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ButterKnife.unbind(this);
    }
}
